package com.glsc.ngateway.common.api.flowable.dto.param;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Map;

/*
* 网关设置流程变量dto
* */
@Data
@AllArgsConstructor
@NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties({ "hibernateLazyInitializer", "handler" })
public class ParamSetupVariableDto implements Serializable {

    @ApiModelProperty(value = "变量map,key=流程实例ID,value为变量map")
    private Map<String, Map<String, Object>> setupMap;

    public Map<String, Map<String, Object>> getSetupMap() {
        return setupMap;
    }

    public void setSetupMap(Map<String, Map<String, Object>> setupMap) {
        this.setupMap = setupMap;
    }

    @Override
    public String toString() {
        return "ParamSetupVariableDto{" +
                "setupMap=" + setupMap +
                '}';
    }
}
